package com.hula.onion.book.server.spider.platforms.niwodai;

import org.springframework.stereotype.Component;

/**
 * Description:
 * Create Date:2018/1/18 14:18
 *
 * @author shan
 * @version 1.0
 */
@Component
public class NiWoDaiResponseEntity<T> {

    /**
     * 错误信息
     */
    private String error;

    /**
     * 返回码
     */
    private String state;

    /**
     * 是否成功标识
     */
    private String isback;

    /**
     * 成功时存储的数据
     */
    private T t;

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getIsback() {
        return isback;
    }

    public void setIsback(String isback) {
        this.isback = isback;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
    @Override
    public String toString() {
        return "NiWoDaiResponseEntity{" +
                "error='" + error + '\'' +
                ", state='" + state + '\'' +
                ", isback=" + isback +
                ", t=" + t +
                '}';
    }
}